package com.wenjie.original.entity.vo.SysMenu;

import com.wenjie.original.entity.SysMenu;
import com.wenjie.original.entity.common.vo.IAddVo;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

public class SysMenuAddVo {


    @Data
    @ApiModel("目录的添加")
    public static class AddMVo extends baseVo implements IAddVo<SysMenu> {

        @Null
        private Long sysMenuId;

        @NotNull
        private Long parentId;

        @NotBlank
        private String menuTitle;

        @NotBlank
        private String menuIcon;

    }

    @Data
    @ApiModel("菜单的添加")
    public static class AddCVo extends baseVo implements IAddVo<SysMenu> {

        @Null
        private Long sysMenuId;

        @NotNull
        private Long parentId;

        @NotBlank
        private String menuTitle;

        @NotBlank
        private String menuPath;

        @NotBlank
        private String menuComponent;

        private Boolean isCache = false;

        private Boolean visible = true;
    }


    @Data
    private static class baseVo extends SysMenu {

        @Null
        private Long createTime;

        @Null
        private Long updateTime;

        @Null
        private Long getVersion;

        @Null
        private Long delFlag;
    }


}
